<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>Sample STI Control Panel Extension</TITLE>
<META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
</HEAD>
<BODY TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff" leftmargin="8">

<FONT FACE="Verdana"><H2><A NAME="MYSAMPLE">Sample STI Control Panel Extension</A> </H2>

<span style="color:#FF0000">[This is preliminary documentation and subject to change.]</span> 

<H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
This sample is a working example of an STI (Still Image) control panel extension. The main purpose of this sample is to show how to add a tab to an STI device's  control panel.

This control panel extension works in conjunction with the sample user-mode minidriver found in the Sampusd directory. Both parts need to be built to run this example.

<H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
To build the sample, open a DDK command window, change to the Sampcpl directory, and use the <B>build</B> command. After building, follow the directions in the Sampusd directory to install and use the sample.

This sample has not been tested on Alpha platforms. It has not been confirmed to be 64-bit compliant. The code builds properly with Microsoft Visual C&#174; 6.0. Plug and Play and Power Management are not applicable to this sample.

Building this sample produces three files: Sampcpl.cpl, Sampcpl.lib, and Sampcpl.exp. Both free and checked versions are buildable. The sample has been tested with a binary that was built with Microsoft Visual C 5.0.

<H3>TOOLS</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
See the Help file in the Sampusd directory for information.<P>

<H3>RESOURCES</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
More information on TWAIN can be found at <A HREF="http://www.twain.org">http://www.twain.org</A>.<P>
To get a logo for your device, consult <A HREF="http://www.microsoft.com/hwtest">WHQL</A> for information and test suites.<P>
Your device should support Plug and Play, even if it uses the parallel or serial port. Download Plug and Play specs from their <A HREF="http://www.microsoft.com/hwdev/respec/pnpspecs.htm">Web site</A>.<P>

<H3>CODE TOUR</H3>
<H4>File Manifest</H4>
</FONT><U><PRE>File&#9;&#9;	Description
</U>
Sampcpl.htm&#9; 	The documentation for this sample (this file)
Sampcpl.cpp&#9; 	Implements control panel extension
Sampcpl.h&#9;	Main header file
Sampcpl.rc&#9;  	Main resource file
Sampcpl.rcv&#9; 	Contains version resource
Resource.h&#9;  	Resource defines
Makefile&#9;    	The makefile for the project; do not edit.
Sources&#9;     		DDK build instructions
Sampcpl.def&#9; 	DLL definition

</pre></FONT><FONT FACE="Verdana" SIZE=2><P><H4>Programming Tour</H4></FONT><FONT FACE="Verdana" SIZE=2><P>
The name of the DLL and entry point function must be specified on a PropertyPages line in the .inf file, as shown in Sampusd.inf.<P>
</FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
<TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
<TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
<P></TD>
</TR>
</TABLE>

<FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
</HTML>

